package com.dubbo.gmail.api.config;

import com.alibaba.dubbo.common.URL;

public class MatchServerConfig implements ServerConfig {

    private static URL url;
    private static MatchServerConfig matchServerConfig = new MatchServerConfig();

//    String urlString = stringBuilder.append(url.getProtocol()).append("://").append(url.getHost()).append(":")
//            .append("20881").append("/").append("com.dubbo.gmail.api.service.ReceiveHelloService").toString();

    public static MatchServerConfig getInstance() {
        url = new URL("dubbo", "127.0.0.1", 20880);
        return matchServerConfig;
    }

    public URL getUrl() {
        return url;
    }
}
